import 'package:flutter/material.dart';

import 'catalog.dart';

class LoginWidget extends StatelessWidget {
  const LoginWidget({ super.key });

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            const Text(
              "Welcome",
              style: TextStyle(
                color: Colors.black87,
                fontWeight: FontWeight.bold,
                fontSize: 32.0,
              ),
            ),

            Container(
              padding: const EdgeInsets.fromLTRB(32.0, 0, 32.0, 0),
              child: const TextField()
            ),

            Container(
              padding: const EdgeInsets.fromLTRB(32.0, 0, 32.0, 0),
              child: const TextField()
            ),
            
            Container(
              padding: const EdgeInsets.all(8.0),
              child: ElevatedButton(
                onPressed: () {
                  Navigator.push(
                    context,
                    MaterialPageRoute(builder: (context) => const CatalogWidget())
                  );
                },
                child: const Text("ENTER"),
              ),
            )
          ],
        ),
      ),
    );
  }
}